<template>
  <!--<div>
    <input type="text" v-model="input">
    <button @click="aaa">点击</button>
  </div>-->
  <el-select v-model="value" filterable placeholder="请选择">
    <el-option
      v-for="item in options"
      :key="item.nbId"
      :label="item.nbName"
      :value="item.nbId">
    </el-option>
  </el-select>
</template>

<script>
import { listNewsbulletinAll } from "@/api/system/newsbulletin";

export default {
  name: "student",
  data() {
    return{
      input:'123',
      options: [],
      value: ''
    }
  },
  created() {
    this.getList();
  },
  methods: {
    aaa() {
      alert(this.input)
    },
    /** 查询新闻与公告列表 */
    getList() {
      this.loading = true;
      listNewsbulletinAll().then(response => {
        this.options = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
  },
}
</script>

<style scoped>

</style>
